CREATE TABLE [dbo].[TWMVTO_INTE]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_BANC] [dbo].[TD_VC_003] NOT NULL,
[NU_CNTA_BANC] [dbo].[TD_VC_020] NOT NULL,
[TI_DOCU_REFE] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU_REFE] [dbo].[TD_VC_020] NOT NULL,
[NU_SECU] [dbo].[TD_IN_001] NOT NULL,
[FE_DOCU_REFE] [dbo].[TD_DT_001] NULL,
[NO_GIRA] [dbo].[TD_VC_100] NULL,
[IM_CHEQ] [dbo].[TD_NU_016_004] NULL,
[FE_ENTR_CHEQ] [dbo].[TD_DT_001] NULL,
[FE_PROG_CHEQ] [dbo].[TD_DT_001] NULL,
[ST_IMPR_CHEQ] [dbo].[TD_VC_001] NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NULL,
[NU_CNTB_EMPR] [dbo].[TD_IN_001] NULL,
[CO_UNID_CNTB] [dbo].[TD_VC_003] NULL,
[CO_OPRC_CNTB] [dbo].[TD_VC_003] NULL,
[NU_ANNO] [dbo].[TD_IN_004_ANOS] NULL,
[NU_MESE] [dbo].[TD_IN_002_MESE] NULL,
[NU_ASTO] [dbo].[TD_VC_010] NULL,
[FE_ASTO_CNTB] [dbo].[TD_DT_001] NULL,
[CO_CNTA_EMPR] [dbo].[TD_VC_020] NULL,
[TI_AUXI_EMPR] [dbo].[TD_VC_001] NULL,
[CO_AUXI_EMPR] [dbo].[TD_VC_020] NULL,
[CO_ORDE_SERV] [dbo].[TD_VC_020] NULL,
[TI_DOCU] [dbo].[TD_VC_003] NULL,
[NU_DOCU] [dbo].[TD_VC_020] NULL,
[FE_DOCU] [dbo].[TD_DT_001] NULL,
[FE_DOCU_VENC] [dbo].[TD_DT_001] NULL,
[TI_CAMB] [dbo].[TD_VC_003] NULL,
[CO_MONE] [dbo].[TD_VC_003] NULL,
[FA_CAMB] [dbo].[TD_NU_015_006] NULL,
[FA_CAMB_DIAR] [dbo].[TD_NU_015_006] NULL,
[TI_OPER] [dbo].[TD_VC_003] NULL,
[IM_MVTO_ORIG] [dbo].[TD_NU_016_004] NULL,
[IM_MVTO_CNTB] [dbo].[TD_NU_016_004] NULL,
[DE_GLOS] [dbo].[TD_VC_100] NULL,
[NU_ASTO_ORIG] [dbo].[TD_VC_010] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TWMVTO_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TWMVTO_IN__NU_AN__4D755761] CHECK NOT FOR REPLICATION (([NU_ANNO]>(1980)))
GO
ALTER TABLE [dbo].[TWMVTO_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TWMVTO_IN__NU_ME__4E697B9A] CHECK NOT FOR REPLICATION (([NU_MESE]>=(0) AND [NU_MESE]<=(13)))
GO
ALTER TABLE [dbo].[TWMVTO_INTE] ADD CONSTRAINT [PK__TWMVTO_I__4BD15E6765F6EC68] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_BANC], [NU_CNTA_BANC], [TI_DOCU_REFE], [NU_DOCU_REFE], [NU_SECU]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TWMVTO_INTE] ADD CONSTRAINT [FK__TWMVTO_IN__CO_EM__0505836D] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
